package com.jie.langlangmall.common.exception;

import com.jie.langlangmall.common.api.IErrorCode;

/**
 * @Author Jie
 * @Date 2024/11/21 14:42
 * @Email 3217998214@qq.com
 * @Description 断言处理类，用于抛出各种API异常
 */
public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }
}
